body {									/* 标签样式 body进行全局控制 */
	background-color: #9b59b6;
	font-family: 'Open Sans', sans-serif;	/* 字体，支持多个，之间用逗号隔开 */
	display: flex;						/* w3c新标准，弹性布局，内容居中 */
	align-items: center;			/* 弹性布局，纵向居中 */
	justify-content: center;		/* 弹性布局，横向居中 */
	min-height: 100vh;			/* 高度自适应，vh: 相对于视窗的高度, vw: 相对于视窗的宽度 */
	margin: 0;
}

.container {
	background-color: #fff;
	border-radius: 5px;						/* 圆角 */
	box-shadow: 0 2px 5px rgba(0, 0, 0, 0.3);	/* 阴影，alpha透明度 */
	overflow: hidden;							/* 溢出部分隐藏 */
	width: 400px;
	max-width: 100%;
}

.header {
	border-bottom: 1px solid #f0f0f0;
	background-color: #f7f7f7;
	padding: 20px 40px;
}

.header h2 {
	margin: 0;
}

.form {
	padding: 30px 40px;	
}

.form button {
	background-color: #8e44ad;
	border: 2px solid #8e44ad;
	border-radius: 4px;
	color: #fff;
	display: block;
	font-family: inherit;
	font-size: 16px;
	padding: 10px;
	margin-top: 20px;
	width: 100%;
}

.form-control {
	margin-bottom: 10px;
	padding-bottom: 20px;
	position: relative;
}

.form-control label {
	display: inline-block;
	margin-bottom: 5px;
}

.form-control input {
	border: 2px solid #f0f0f0;
	border-radius: 4px;
	display: block;
	font-family: inherit;
	font-size: 14px;
	padding: 10px;
	width: 100%;
}

.form-control input:focus {
	outline: 0;
	border-color: #777;
}

.form-control.success input {
	border-color: #2ecc71;
}

.form-control.error input {
	border-color: #e74c3c;
}

.form-control i {
	visibility: hidden;
	position: absolute;
	top: 40px;
	right: 10px;
}

.form-control.success i.fa-check-circle {
	color: #2ecc71;
	visibility: visible;
}

.form-control.error i.fa-exclamation-circle {
	color: #e74c3c;
	visibility: visible;
}

.form-control small {
	color: #e74c3c;
	position: absolute;
	bottom: 0;
	left: 0;
	visibility: hidden;
}

.form-control.error small {
	visibility: visible;
}
